package com.youlai.boot.factory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.factory.model.entity.CuttingBedDetails;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.factory.model.query.CuttingBedDetailsQuery;
import com.youlai.boot.factory.model.vo.CuttingBedDetailsVO;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 裁床明细Mapper接口
 *
 * @author youlaitech
 * @since 2025-08-24 15:02
 */
@Mapper
public interface CuttingBedDetailsMapper extends BaseMapper<CuttingBedDetails> {

    /**
     * 获取裁床明细分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<CuttingBedDetailsVO>} 裁床明细分页列表
     */
    Page<CuttingBedDetailsVO> getCuttingBedDetailsPage(Page<CuttingBedDetailsVO> page, CuttingBedDetailsQuery queryParams);

    /**
     * 批量新增裁床明细
     *
     * @param entityList 裁床明细实体列表
     * @return 影响的行数
     */
    int insertBatch(List<CuttingBedDetails> entityList);


    /**
     * 批量更新裁床明细
     */
    int updateBatch(@Param("list") List<CuttingBedDetails> list);
}
